/**
 * manages all functions related to user
 * 
 */

function doLogin (){
		
	//For testing
	$.get('php/actions/doLogin.php',doLogin_onResponse);
	
	//the original
	//$.get('php/actions/doLogin.php',doLogin_onResponse);
	
}	

/**
 * Gets the response of doLogin actions
 * 
 * @param data - returned data from doLogin action
 * @return
 */
function doLogin_onResponse(data){
	data = "php/actions/authorize.php?oauth_token=LzIMtOJeCzDV8DHi7q8BFNE0sQtlYDY9fxemhkLtuw";
	if (data.indexOf("authorize")!= -1){
		var url = data;
		var feat = "height=450,width=850,scrollbars=no,location=no,resizable=no,menubar=no,status=no,toolbar=no";
		var authwin = window.open(url,'_blank',feat);
	}
}
